package com.jy.rhin.facade.ws.document.storage;

import cn.org.chiss.rhin._2015.document.repository.ProvideAndRegisterDocumentSet;
import cn.org.chiss.rhin._2015.document.repository.ProvideAndRegisterDocumentSetResponse;
import cn.org.chiss.rhin._2015.document.repository.RetrieveDocumentSet;
import cn.org.chiss.rhin._2015.document.repository.RetrieveDocumentSetResponse;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

import static com.jy.rhin.config.NamespaceConstants.NS_RHIN;

/**
 * This class was generated by Apache CXF 3.5.1
 * 2022-04-18T15:21:44.693+08:00
 * Generated source version: 3.5.1
 * 健康档案存储服务
 *
 * @author dhl
 */
@WebService(targetNamespace = NS_RHIN, name = "DocumentStorage")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface DocumentStorage {


    /**
     * 获取文档
     *
     * @param document
     * @return
     */
    @WebMethod(operationName = "RetrieveDocumentSet", action = "RetrieveDocumentSet")
    @WebResult(name = "RetrieveDocumentSetResponse", targetNamespace = NS_RHIN, partName = "document")
    RetrieveDocumentSetResponse retrieveDocumentSet(

            @WebParam(partName = "document", name = "RetrieveDocumentSet", targetNamespace = NS_RHIN)
                    RetrieveDocumentSet document
    );

    /**
     * 提交并注册
     *
     * @param message
     * @return
     */
    @WebMethod(operationName = "ProviderAndRegistryDocumentSet", action = "ProviderAndRegistryDocumentSet")
    @WebResult(name = "ProvideAndRegisterDocumentSetResponse", targetNamespace = NS_RHIN, partName = "message")
    ProvideAndRegisterDocumentSetResponse providerAndRegistryDocumentSet(

            @WebParam(partName = "message", name = "ProvideAndRegisterDocumentSet", targetNamespace = NS_RHIN)
                    ProvideAndRegisterDocumentSet message

    );
}
